<%@ include file="/common/taglibs.jsp"%>
<script>
jQuery(document).ready(function(){
	jQuery("#eventForm").validate();
});
</script>


<div style="padding:5px;" align="center">
	<!-- <span class="head-dec">Create Event</span> --><br/><br/>
		
		<s:form name="eventForm" id="eventForm" action="saveOrUpdateEvent" enctype="multipart/form-data" method="post" >
		<s:hidden name="event.id"></s:hidden>	
		 <table border="0">
	     	<tr>
	     		<td class="inputField" nowrap="nowrap">Event Name</td>
				<td class="inputTextBox">
					<s:textfield name="event.name" required="true" style="width:250px;" cssClass="required" />					
				</td>
			</tr>
			
			<tr><td>&nbsp;</td></tr>
			<tr>
	     		<td class="inputField" nowrap="nowrap">Description</td>
				<td class="inputTextBox">
					<s:textarea name="event.description"  required="true" style="width:250px;" cssClass="required" />					
				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>
	     	<tr>
	     		<td class="inputField" nowrap="nowrap">Event Picture</td>
				<td class="inputTextBox">
					<s:file name="file" required="true" style="width:250px;" cssClass="required"/>					
				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>
	     	<tr>
	     		<td class="inputField" nowrap="nowrap">Status</td>
				<td class="inputTextBox">
					<s:radio  name="event.status" id="event_status" list="#{'Active':'Active','InActive':'InActive'}" value="%{event.getStatus()}" />
					
				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>			
			<tr>
				<td colspan="2">
					<s:reset value="Clear" id="saveOrUpdateEvent_0" cssClass="button-gray" theme="simple"/>
					<s:if test="event.id == ''">
						<s:submit value="Create" id="saveOrUpdateEvent_0" cssClass="button-green" theme="simple" />
					</s:if>
					<s:else>
						<s:submit value="Update" id="saveOrUpdateEvent_0" cssClass="button-green" theme="simple" />
					</s:else>
					<input type="button" value="List" id="saveOrUpdateEvent_0" class="button-gray" onclick="javascript:showLists('/events');" />
				</td>				
			</tr>								
		</table>
	</s:form>
</div>

